﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using ESHOP.DAO;
using ESHOP.Domain;
namespace E_Shop
{
    public partial class TradeLeadBuying : System.Web.UI.Page
    {
        private readonly BuyLeadDAO _buyleaddao= new BuyLeadDAO();
        protected void Page_Load(object sender, EventArgs e)
        {
            BindataforDatalist();
        }
        public void BindataforDatalist()
        {
            String id = (String)Request.QueryString["id"];
            String keyword = (String)Request.QueryString["textsearch"];
            String counttry = (String)Request.QueryString["idcounttry"];
            String category = (String)Request.QueryString["idcategory"];
            var objlist = _buyleaddao.SearchBuy(id,keyword, category, counttry);
            listproduc.DataSource = objlist;
            listproduc.DataBind();
            updtlist.Update();
        }
        protected void LinkBtnContactnow_Click(object sender, EventArgs e)
        {
        }
    }
}